Xbasic

EMAIL_POP_HEADERS Function

Syntax

Headers as C = email_pop_headers(P pSocket ,N nMessage )

Arguments

pSocketPointer

A pointer variable that is populated by EMAIL_POP_OPEN().

nMessageNumeric

The number of the message to retrieve.

Returns

HeadersCharacter

Returns the header of message number nMessage.

Description

The EMAIL_POP_HEADERS() function returns only the header for message number nMessage. pSocket must be an active structure created with EMAIL_POP_OPEN().

Example

? email_pop_open(pSocket, "mail.mycompany.com",  "john_doe", "sneaky")
= .T.
 
? email_pop_headers(pSocket, 3)
= From: "Sally Doe" 
To: 
Subject: Txt attachments
Date: Tue, 29 Oct 2002 08:30:26 -0500
Organization: My Company
Message-ID: 
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_NextPart_000_000B_01C27F25.6EB6DAB0"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2616
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

See Also